package com.example.project.exception;

import io.swagger.annotations.ApiModelProperty;

/**
 * 业务异常
 */
public class ServiceException extends RuntimeException {
    @ApiModelProperty(value = "异常状态码")
    private Integer code = 500;

    public ServiceException() {
    }

    public ServiceException( String message) {
        super(message);
    }

    public Integer getCode() {
        return code;
    }
}
